package factory;

public class Server1 {

    interface Food {
        void eat();
    }

    static class Rice implements Food {

        @Override
        public void eat() {
            System.out.println("吃饭了");
        }
    }

    static class Noodles implements Food {

        @Override
        public void eat() {
            System.out.println("吃面了");
        }
    }


}
